function findpass(){
	var username = $('#username').val();
	var email = $('#email').val();
	//var msg =  new at_trace();
	at_loading.show(); //等待对话框
	$.ajax({
		url: path + '/help/findpass',
		type: 'post',
		data:{username:username, email:email},
		dataType:'json',
		success:function(data, status){
			at_loading.hide(); 
			if(data.t == 1){
				// 弹出窗口
				at_infoTrace.show(data.msg, 'o', null, [at_traces_i.getButton('确定', 'gray', 'close')]);
			} else {
				at_infoTrace.show(data.msg, 'i', null, [at_traces_i.getButton('关闭', 'gray', function(){
					at_traces_i.setDisplay('hide');
				})]);
			}
		},
		error: function(){
			at_loading.hide();
			at_infoTrace.show('服务器错误', 'e', null, [at_traces_i.getButton('关闭', 'gray', function(){
				at_traces_i.setDisplay('hide');
			})]);
		}
	});
}
$(document).ready(function(){
	$('#findpassBtn').click(findpass);
});